package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.EmpFamilyExample.E_COMPANY_ID;
import static org.jsola.hr.example.EmpFamilyExample.E_EMP_ID;
import static org.jsola.hr.example.EmpFamilyExample.E_NAME;
import static org.jsola.hr.example.EmpFamilyExample.E_PHONE;
import static org.jsola.hr.example.EmpFamilyExample.E_RELATION;
import static org.jsola.hr.example.EmpFamilyExample.E_WORK_UNIT;
import static org.jsola.hr.example.EmpFamilyExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.EmpFamilyExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.EmpFamilyExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.EmpFamilyExample.M_NAME_MAX;
import static org.jsola.hr.example.EmpFamilyExample.M_PHONE_MAX;
import static org.jsola.hr.example.EmpFamilyExample.M_RELATION_MAX;
import static org.jsola.hr.example.EmpFamilyExample.M_WORK_UNIT_MAX;
import static org.jsola.hr.example.EmpFamilyExample.N_COMPANY_ID;
import static org.jsola.hr.example.EmpFamilyExample.N_EMP_ID;
import static org.jsola.hr.example.EmpFamilyExample.N_NAME;
import static org.jsola.hr.example.EmpFamilyExample.N_PHONE;
import static org.jsola.hr.example.EmpFamilyExample.N_RELATION;
import static org.jsola.hr.example.EmpFamilyExample.N_WORK_UNIT;

/**
 * 员工家庭成员
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【员工家庭成员】的参数")
@Data
public class EmpFamilyAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    @Length(max = 255, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_RELATION, example = E_RELATION)
    @Length(max = 255, message = M_RELATION_MAX)
    private String relation;

    @ApiModelProperty(notes = N_PHONE, example = E_PHONE)
    @Length(max = 20, message = M_PHONE_MAX)
    private String phone;

    @ApiModelProperty(notes = N_WORK_UNIT, example = E_WORK_UNIT)
    @Length(max = 255, message = M_WORK_UNIT_MAX)
    private String workUnit;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;


}

